.title {
  color: #35425E;
}

.firstTitle {
  font-weight: bold;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #363c4e;
  border-radius: 2px;

  &_title {
    color: #fff;
    margin-left: 20px;
  }

  &_btn {
    width: 38px;
    height: 38px;
    background: #303F9F;
    background-image: url(../../assets/icons/icon-checked.png);
    background-size: 40% auto;
    background-position: center;
    background-repeat: no-repeat;
    border-top-right-radius: 2px;
    cursor: pointer;
  }
}

.customTree {
  :global {
    .ant-tree-node-content-wrapper.ant-tree-node-selected {
      background-color: transparent;
    }

    .ant-tree-switcher {
      line-height: 21px;

      >img {
        width: 6px;
        height: 7px;
      }
    }

    .ant-tree-switcher_open {
      img {
        transform: rotate(90deg);
      }
    }

    .ant-tree-checkbox-inner {
      width: 14px;
      height: 14px;
    }

    .ant-tree-checkbox:hover,
    .ant-tree-checkbox-checked:hover {
      .ant-tree-checkbox-inner {
        border-color: #D4D7DD;
      }
    }

    .ant-tree-checkbox-indeterminate {
      .ant-tree-checkbox-inner {
        &::after {
          background-color: #fff;
          width: 6px;
          height: 6px;
        }
      }
    }

    .ant-tree-checkbox-checked {
      &::after {
        border-color: #D4D7DD;
      }

      .ant-tree-checkbox-inner {


        background-color: #fff;
        border-color: #D4D7DD;

        &::after {
          border-color: #2C394D;
        }
      }
    }
  }
}

.darkTree {
  // height: 372px;
  max-height: 372px;
  overflow-y: scroll;
  overflow-x: hidden;
  background: #2B2F3C;

  &::-webkit-scrollbar-thumb {
    background: transparent; // 滚动条透明
    border: unset;
  }

  .darkTitle {
    color: #fff;
  }

  :global {

    .ant-tree-checkbox:hover,
    .ant-tree-checkbox-checked:hover {
      .ant-tree-checkbox-inner {
        border-color: #12161D;
      }
    }

    .ant-tree-treenode-disabled:not(.checked-node) {
      display: none;
    }

    .ant-tree-treenode:hover {
      background-color: transparent;
    }

    .ant-tree-checkbox-inner {
      background-color: #171C23;
      border-color: #12161D;
    }

    .checked-node {
      .ant-tree-checkbox-inner {
        border-color: unset !important;
      }

      .ant-tree-checkbox-checked .ant-tree-checkbox-inner {
        background-color: #343947;

        &::after {
          border-color: #868B97;
        }
      }
    }

    .ant-tree-checkbox-checked {
      &::after {
        border-color: #12161D;
      }

      .ant-tree-checkbox-inner {

        background-color: #171C23;
        border-color: #12161D;

        &::after {
          border-color: #FFFFFF;
        }
      }
    }

    .ant-tree-node-content-wrapper:hover {
      background-color: transparent;
    }
  }
}

.treeBody {
  padding: 7px 12px 4px;

  .customTree {
    margin-left: -4px;
    margin-top: 4px;
  }

}

.treeSearch {
  border-radius: 14px;
  background-color: #171C23;
  border-color: 1px solid #07111E;
  border: unset;

  :global {
    .ant-input:placeholder-shown {
      opacity: .3;
    }

    input.ant-input {
      height: 28px;
      background-color: transparent;

      &::placeholder {
        color: #fff !important;
      }
    }

    .ant-input-prefix {
      margin-right: 12px;
      opacity: .4;

      img {
        width: 14px;
        height: 14px;
      }
    }
  }
}

.focusedInput {
  :global {
    border: 1px solid #6292E1;

    .ant-input {
      color: #fff !important;

      &:placeholder-shown {
        opacity: 1;
      }
    }

    .ant-input-prefix {
      margin-right: 12px;
      opacity: 1;
    }
  }
}